package com.fr.web.core.service;

import com.fr.web.core.Service;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class PauseService
  implements Service
{
  private static PauseService pauseService = new PauseService();
  private String pauseop = "pause";

  public static final PauseService getInstance()
  {
    return pauseService;
  }

  public boolean accept(String paramString)
  {
    return this.pauseop.equals(paramString);
  }

  public void process(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse, String paramString1, String paramString2)
    throws Exception
  {
    Thread.currentThread();
    Thread.sleep(200L);
    PrintWriter localPrintWriter = paramHttpServletResponse.getWriter();
    localPrintWriter.write("ok");
    localPrintWriter.flush();
    localPrintWriter.close();
  }
}